import { cyHttp as http } from '@/services/http';
import type { ListResult } from '@/types/api/common';
import type { AccountListItem, AccountListParamsDto } from '@/types/api/crm-cy/user';

// 列表
export const getList = (payload: { data: AccountListParamsDto; params: AccountListParamsDto }) => {
  return http<ListResult<AccountListItem>>({
    url: '/api/admin/user/list',
    method: 'post',
    ...payload
  });
};
// 修改会员信息
export const updateUser = (data: any) => http<any>({ url: '/api/admin/user/update', method: 'post', data });
